package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.BorrowInfo;
import com.atguigu.srb.core.pojo.entity.Lend;
import com.atguigu.srb.core.pojo.vo.BorrowInfoApprovalVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的准备表 服务类
 * </p>
 *
 * @author fun
 * @since 2021-10-29
 */
public interface LendService extends IService<Lend> {

    void creatLend(BorrowInfoApprovalVO borrowInfoApprovalVO, BorrowInfo borrowInfoParam);

    List<Lend> getList();

    Map<String, Object> show(Long id);

    BigDecimal getInterestCount(BigDecimal investAmount, BigDecimal lendYearRate, BigDecimal period, BigDecimal returnMethod);

    void makeLoan(Long id);
}
